class AcquisitionMethod < ActiveRecord::Base

  validates_presence_of :name
  validates_uniqueness_of :name
  
  has_many :entities

  def self.find_or_create(params)
    method = AcquisitionMethod.find_by_name(params[:name])
    
    unless method
      method = AcquisitionMethod.new(params)
      method.save
    end  
    
    return method
  end


end
